package com.eshore.norm.pattern.builder.demo;

/**
 * 抽象房子类
 *
 * @author: v-chenjl62
 * @date: 2024/2/1 9:59
 */
public abstract class AbstractHouse {
    /**
     * 打地基
     */
    public abstract void buildBasic();

    /**
     * 砌墙
     */
    public abstract void buildWalls();

    /**
     * 封顶
     */
    public abstract void roofed();

    /**
     * 构建过程
     */
    public void build() {
        buildBasic();
        buildWalls();
        roofed();
    }
}
